home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12043 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  761 b 

  1. Path: usamrid.innovsoftd.com!news
  2. From: David Peterson <dpeterso@isd.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: string search?
  5. Date: Thu, 28 Mar 1996 09:02:09 -0600
  6. Organization: Applied Systems, Inc.
  7. Message-ID: <315AA9F1.9D9@isd.net>
  8. References: <4jbmtk$78k@dfw-ixnews3.ix.netcom.com>
  9. NNTP-Posting-Host: pm-1-202.innovsoftd.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  14.  
  15. Ricardo Mor wrote:
  16. >     How can I search for a string of characters within another string?
  17. > for example..
  18. >     string = "NEXT_TIME";
  19. >     string2 = "NEXT";
  20. >     how can I find  string2 in string?
  21. > Eddy...
  22.  
  23.     strstr(string, string2);
  24.  
  25. Now tell me, was this a joke, or what?
  26.  
  27. Dave
  28.